Batched input shows 3d but got 2d 2d tensor